const Router = require('Koa-router')
const {getcountgetBooks,aBooks,bd,fieldBooks,updateBook,findBooksId,deleteBookById,deleteBooksByIdsWithTransaction}=require("../controller/books")
const serve = require('koa-static');
const path = require('path');
const router = new Router({prefix: "/books"})
// router.post("/add",createBooks)
router.post("/field",fieldBooks)
router.post("/updateBook",updateBook)
router.post("/deleteBookById",deleteBookById)
router.post("/deleteBooksByIdsWithTransaction",deleteBooksByIdsWithTransaction)
router.post("/fbid",findBooksId)
router.post("/getcountgetBooks",getcountgetBooks)
router.post("/abooks",aBooks)
router.post("/bd",bd)//分页查询




  
module.exports = router